package cn.cxy.exec;

/**
 * @Author 金帮嘉诚
 * @Date 2021-06-09 周三 8:52
 */
/*鱼香肉丝24 花生8 米饭3 ，满30打八折，或者鱼香肉丝优惠成16*/
public class Demo3 {
    public static void main(String[] args) {
        double money1=24+8+3;
        money1=money1>=30?money1*0.8:money1;
        double money2=16+8+3;
        double money3=money1<money2?money1:money2;
        System.out.println("money3 = " + money3);
    }
}

